// 引用createStore用于创建store对象
import {createStore,applyMiddleware} from 'redux'

// 引入Count组件服务的reducer
// import countReducer from './reducers/count_reducer'

//引入redux-thunk，用于支持异步action
import thunk from 'redux-thunk'

//引入redux-devtools-extension
import {composeWithDevTools} from 'redux-devtools-extension'

// 引入reduces汇聚的index
import reduces from './reducers/index'

// 暴露store
export default createStore(reduces,composeWithDevTools(applyMiddleware(thunk)))